﻿namespace FrameworkCore.Migrations;

public interface INetModulerDataProvider
{
    #region 创建数据库
    /// <summary>
    /// 如果数据库不存在则创建
    /// </summary>
    /// <param name="connectionString">数据库连接串</param>
    /// <returns></returns>
    bool CreateDatabaseIfNotExists(string connectionString);

    /// <summary>
    /// 查询数据库是否存在
    /// </summary>
    /// <param name="databaseName">数据库名</param>
    /// <param name="connectionString">数据库连接串</param>
    /// <returns></returns>
    bool DatabaseExists(string databaseName, string connectionString);
    #endregion
}
